#ifndef __LOGGER_HPP__
#define __LOGGER_HPP__

#include <fstream>
#include <iostream>

struct Logger {
	virtual ~Logger() {
		_log_file.flush();
		_log_file.close();
	}

	void setLogFile(const char *file_name);
	void log(const char *str,...);
	void error(const char *error_text);

private:
	std::ofstream  _log_file;
};

#endif
